using System;
using UnityEngine;
using System.Collections;

public class tempoGlobal : MonoBehaviour {
	
	int vidaElpis = 5;
	float tempo = 0;
	
	void Start () {
	
		//vidaElpis = new lifePlayer();
		
	}
	
	// Update is called once per frame
	void Update () {
	
		tempo += Time.deltaTime;
		if(gameObject.tag == "TempoText")
		{
			guiText.text = "Tempo: "+(int)tempo;
		}
		
		if(gameObject.tag == "VidaText")
		{
			//guiText.text = "Vida: " + vidaElpis.ToString();
		}
	}
		void OnTriggerStay(Collider collider){
		
		Debug.Log("vida elpis " + vidaElpis);
		//colliderPlayer = collider;
	
	}
}
